package com.mygame.common.dbEntity;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import com.baidu.bjf.remoting.protobuf.annotation.ProtobufClass;
import com.mygame.common.protobuf.ProtoFileMerge;
/**
 * @description 用户信息
 * @author chenyuejiu
 * @date 2023-07-20
 */
 @ProtobufClass
 @ProtoFileMerge(fileName = "db.proto", filePackage = "db.mysql")
public class UserInfoModel implements Serializable {

    private static final long serialVersionUID = 1L;
    public int change = 0; //1更新 2删除

    /**
    * 用户编号
    */
    Integer userId;

    /**
    * 用户名
    */
    String userName;

    /**
    * 状态
    */
    Integer status;

    /**
    * 创建时间
    */
    Integer createTime;


    /**删除*/
    public void delete() {
        change = 2;
    }


    public UserInfoModel() {
    }


    public Integer getUserId() {
        return userId;
    }
    public void setUserId(Integer userId) {
        this.userId = userId;
        change = 1;
    }

    public String getUserName() {
        return userName;
    }
    public void setUserName(String userName) {
        this.userName = userName;
        change = 1;
    }

    public Integer getStatus() {
        return status;
    }
    public void setStatus(Integer status) {
        this.status = status;
        change = 1;
    }

    public Integer getCreateTime() {
        return createTime;
    }
    public void setCreateTime(Integer createTime) {
        this.createTime = createTime;
        change = 1;
    }
}
